package com.cg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author lhy
 * @since 2024-12-26
 */
@Getter
@Setter
@Schema(description = "Dictionarylist对象")
public class Dictionarylist implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "字典列表唯一标识符，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "字典名称，字符串类型，表示字典类别的名称，例如“牲畜品种”，非空")
    private String name;

    @Schema(description = "描述，文本类型，对字典类别进行更详细的说明，可选")
    private String description;

    @Schema(description = "创建时间，自动设置为记录创建的时间戳")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "YYYY-MM-dd")
    private LocalDateTime createdAt;
    @Schema(description = "更新时间，当记录被修改时自动更新为此时间戳")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "YYYY-MM-dd")
    private LocalDateTime updatedAt;
}
